package org.example.controller;

import org.example.common.CommonConstant;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * Restful POST GET DELETE PUT
 * @author sxt
 * @version 1.0
 * @description TODO
 * @date 2023/7/31 21:16
 */
@RestController
@RequestMapping(CommonConstant.API_PREFIX)
public class TestController {

//    @GetMapping("/hello")
    @RequestMapping(method = RequestMethod.GET, value = "/hello")
    private String test() {
        return "hello";
    }
}
